var http = require('../http.js')


// 收藏商品 goods/collect
const collect = (goods_id,status) => {
  var url = 'goods/collect'
  return http.getReq(url, {
    goods_id,
    status,
  })
}
//评论商品 goods/add_comment
const spadd_comment = (data) => {
  var url = 'goods/add_comment'
  return http.getReq(url, data)
}
//删除商品评论 goods/comment_del
const comment_del = (id) => {
  var url = 'goods/comment_del'
  return http.getReq(url, {
    id,
  })
}
module.exports = {
  collect,
  spadd_comment,
  comment_del,
}